package cn.yeamin.order.fegin;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import cn.yeamin.order.vo.Item;

@FeignClient(value = "item-service")
public interface ItemFeignClient {

	// 这里定义了类似于SpringMVC用法的方法，就可以进行RESTful的调用了
	@GetMapping(value = "/item/{id}")
	public Item queryItemById(@PathVariable("id") Long id);

}
